package com.wgxmkalftp.user.service;

import com.sun.org.apache.xpath.internal.operations.Bool;
import com.wgxmkalftp.pojo.User;
import org.apache.commons.lang3.StringUtils;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;

/**
 * @author wgx
 * @description
 * @create 2021/3/9/10:58/
 * @origin packageName:com.wgxmkalftp.user.service    projectName:PersonalityWallet
 * @since
 */

public interface UserService {

    /**
     * 登录的业务方法
     * @param user 封装了信息的user对象
     * @param checkCode 验证码
     * @return
     */
    public Boolean register(User user, String checkCode);

    /**
     * 发送验证码
     * @param phone
     * @return
     */
    public String sendCode(String phone);
}
